package com.ruoyi.record.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.record.mapper.RecordtypeMapper;
import com.ruoyi.record.domain.Recordtype;
import com.ruoyi.record.service.IRecordtypeService;

/**
 * 跟进类型Service业务层处理
 * 
 * @author dj
 * @date 2025-06-26
 */
@Service
public class RecordtypeServiceImpl implements IRecordtypeService 
{
    @Autowired
    private RecordtypeMapper recordtypeMapper;

    /**
     * 查询跟进类型
     * 
     * @param recordTypeId 跟进类型主键
     * @return 跟进类型
     */
    @Override
    public Recordtype selectRecordtypeByRecordTypeId(Long recordTypeId)
    {
        return recordtypeMapper.selectRecordtypeByRecordTypeId(recordTypeId);
    }

    /**
     * 查询跟进类型列表
     * 
     * @param recordtype 跟进类型
     * @return 跟进类型
     */
    @Override
    public List<Recordtype> selectRecordtypeList(Recordtype recordtype)
    {
        return recordtypeMapper.selectRecordtypeList(recordtype);
    }

    /**
     * 新增跟进类型
     * 
     * @param recordtype 跟进类型
     * @return 结果
     */
    @Override
    public int insertRecordtype(Recordtype recordtype)
    {
        return recordtypeMapper.insertRecordtype(recordtype);
    }

    /**
     * 修改跟进类型
     * 
     * @param recordtype 跟进类型
     * @return 结果
     */
    @Override
    public int updateRecordtype(Recordtype recordtype)
    {
        return recordtypeMapper.updateRecordtype(recordtype);
    }

    /**
     * 批量删除跟进类型
     * 
     * @param recordTypeIds 需要删除的跟进类型主键
     * @return 结果
     */
    @Override
    public int deleteRecordtypeByRecordTypeIds(Long[] recordTypeIds)
    {
        return recordtypeMapper.deleteRecordtypeByRecordTypeIds(recordTypeIds);
    }

    /**
     * 删除跟进类型信息
     * 
     * @param recordTypeId 跟进类型主键
     * @return 结果
     */
    @Override
    public int deleteRecordtypeByRecordTypeId(Long recordTypeId)
    {
        return recordtypeMapper.deleteRecordtypeByRecordTypeId(recordTypeId);
    }
}
